<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<%@ page import="dao.*"%>
<%@ page import="service.*"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/frame.css" rel="stylesheet" type="text/css" />
<title>测试页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">

<!-- 日历 -->
<link href="css/calendar.css" rel="stylesheet" type="text/css" />
<script>
//欢迎访问 芯晴网页特效 CsrCode.Cn
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
function $(objID){
 return document.getElementById(objID);
}
</script>
<!-- 日历结束 -->

</head>

<body>
<html:form action="/shangjiIdDelOwn.do">

	商机ID<html:text property="shangjiID" />
	<input type="button" value="/shangjiIdDelOwn" onClick="shangjiDel()">
	<input type="button" value="/shangjiIdOwn" onClick="shangjiIdOwn()"><br>
	<br>
	运价ID<html:text property="yunjiaID" />
	<input type="button" value="/yunjiaIdDelOwn" onClick="yunjiaDel()">
	<input type="button" value="/yunjiaIdOwn" onClick="yunjiaIdOwn()"><br>
	<br>
	订单ID<html:text property="orderID" />
	<input type="button" value="/orderIdDelOwn" onClick="orderDel()">
	<input type="button" value="/orderIdOwn" onClick="orderIdOwn()"><br>
	<br>
	起:<html:text property="startDate" onclick="showcalendar(event, this);" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"/>
	止:<html:text property="endDate" onclick="showcalendar(event, this);" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"/>
	<br><input type="button" value="/shangjiListOwn" onClick="shangjiListOwn()"><input type="button" value="/yunjiaListOwn" onClick="yunjiaListOwn()">
	<br><br>
	起运地<html:text property="startAddressId"  value=""/>
	目的地<html:text property="endAddressId"  value=""/>
	<input type="button" value="/yunjiaListOwn.do" onclick="yunjiaAddressQuery()">

</html:form>
<script>
	/**********商机****************/
	function shangjiDel() {
		var t=document.getElementsByName("shangjiID");
		var url="shangjiIdDelOwn.do?";
		url=url+"shangjiID="+t[0].value;
		window.location=url;
	}
	function shangjiIdOwn() {
		var t=document.getElementsByName("shangjiID");
		var url="shangjiIdOwn.do?";
		url=url+"shangjiID="+t[0].value;
		window.location=url;
	}
	function shangjiListOwn() {
		var sd=document.getElementsByName("startDate");
		sd=sd[0].value;
		var ed=document.getElementsByName("endDate");
		ed=ed[0].value;
		var url="shangjiListOwn.do?";
		url=url+"startDate="+sd+"&endDate="+ed;
		//alert(url);
		window.location=url;
	}
	/*************运价****************/
	function yunjiaDel() {
		var t=document.getElementsByName("yunjiaID");
		var url="yunjiaIdDelOwn.do?";
		url=url+"yunjiaID="+t[0].value;
		window.location=url;
	}
	function yunjiaIdOwn() {
		var t=document.getElementsByName("yunjiaID");
		var url="yunjiaIdOwn.do?";
		url=url+"yunjiaID="+t[0].value;
		window.location=url;
	}
	function yunjiaListOwn() {
		var sd=document.getElementsByName("startDate");
		sd=sd[0].value;
		var ed=document.getElementsByName("endDate");
		ed=ed[0].value;
		var url="yunjiaListOwn.do?";
		url=url+"startDate="+sd+"&endDate="+ed;
		//alert(url);
		window.location=url;
	}
	function yunjiaAddressQuery() {
		var sd=document.getElementsByName("startAddressId");
		sd=sd[0].value;
		var ed=document.getElementsByName("endAddressId");
		ed=ed[0].value;
		var url="yunjiaListOwn.do?";
		url=url+"startAddressId="+sd+"&endAddressId="+ed;
		//alert(url);
		window.location=url;
	}
	/**************订单***************/
	function orderDel() {
		var t=document.getElementsByName("orderID");
		var url="orderIdDelOwn.do?";
		url=url+"orderID="+t[0].value;
		window.location=url;
	}
	function orderIdOwn() {
		var t=document.getElementsByName("orderID");
		var url="orderIdOwn.do?";
		url=url+"orderID="+t[0].value;
		window.location=url;
	}
</script>
<!-- 页头 左边栏 -->

<!-- 此处添加本页代码 -->

<!-- 页脚 -->
</body>
<script src="jslab/calendar.js" type="text/javascript"></script>
</html>